package service;

import model.Cart;
import model.Goods;
import model.Order;
import org.springframework.web.servlet.ModelAndView;

import javax.jws.WebParam;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IShopService {
    public List<Goods> selectGoods(Goods goods);
    public List<Goods> selectParentId(Goods goods);
    public List<Goods> selectSortId(Goods goods);
    public List<Order> selectOrder(Order order);

    public String insertCart(Cart cart, Goods goods);

    public ModelAndView selectCart(Cart cart, HttpServletRequest request);


    public ModelAndView order(Goods goods, HttpServletRequest request, String orderNo);
    public String order(Order order, Goods goods);
    public String deleteCart(Integer id);

    public String pay(Integer id, String pass, String orderNo);

    public ModelAndView listBySort(Goods goods, HttpServletRequest request);
    public ModelAndView listByParent(Goods goods, HttpServletRequest request);


}
